****************
*** tab. A.2 ***
****************

* load frame
frame change italian_data


************ Mainstream parties ***************

reg mainstream i.worse_econ##c.associations##i.declining_emp i.education age i.male i.election_year i.provincen, vce(cluster province)
eststo associations_unemployment

reg mainstream i.worse_econ##c.log_associations##i.declining_emp i.education age i.male i.election_year i.provincen, vce(cluster province)
eststo logass_unemployment

reg mainstream i.worse_econ##c.coni_assoc_1999##i.declining_emp i.education age i.male i.election_year i.regionen, vce(cluster regionen)
eststo coni_unemployment

reg mainstream i.worse_econ##c.log_coni_assoc_1999##i.declining_emp i.education age i.male i.election_year i.regionen, vce(cluster regionen)
eststo logconi_unemployment

esttab ///
	associations_unemployment ///
	logass_unemployment ///
	coni_unemployment ///
	logconi_unemployment ///
	using "$folder/replication/tables/tabA2.csv" ///
	, ///
		cells( ///
			b(fmt(2) star) ///
			se(par fmt(2)) ///
		) ///
		ml("1" "2" "3" "4") ///
		nodepv ///
		starlevel(+ 0.10 * 0.05 ** 0.01 *** 0.001) ///
		interaction("*") ///
		keep(	1.worse_econ ///
				1.declining_emp ///
				associations ///
				log_associations ///
				coni_assoc_1999 ///
				1.worse_econ#1.declining_emp ///
				1.worse_econ#c.associations ///
				1.worse_econ#c.log_associations ///
				1.worse_econ#c.coni_assoc_1999 ///
				1.worse_econ#c.log_coni_assoc_1999 ///
				1.declining_emp#c.associations ///
				1.declining_emp#c.coni_assoc_1999 ///
				1.declining_emp#c.log_associations ///
				1.declining_emp#c.log_coni_assoc_1999 ///
				1.worse_econ#1.declining_emp#c.associations ///
				1.worse_econ#1.declining_emp#c.coni_assoc_1999 ///
				1.worse_econ#1.declining_emp#c.log_associations ///
				1.worse_econ#1.declining_emp#c.log_coni_assoc_1999 ///
		) ///
		label ///		
		stats(N N_clust r2 df_m, ///
			fmt(0 0 2 0)) ///
		replace
